package agentV1

import (
	"github.com/gin-gonic/gin"
	"hc_server/pkg/app"
	"hc_server/pkg/channel"
	"hc_server/runtime/e"
)

type LianImgUploadParam struct {
	FileList []*channel.LianImgUploadParam `json:"fileList"`
}

//func LianImgUpload(c *gin.Context) {
//	appG := app.Gin{C: c}
//	var (
//		param   LianImgUploadParam
//		errCode int
//	)
//
//	_, errCode = app.BindJsonAndValid(c, &param)
//	if errCode != e.SUCCESS {
//		appG.ResponseError(e.CodeMap[errCode], nil)
//		return
//	}
//
//	err := channel.LianImgUpload(param.FileList)
//	if err != nil {
//		appG.ResponseError(err.Error(), nil)
//		return
//	}
//	appG.ResponseSuccess("成功", nil)
//}

func LianIncome(c *gin.Context) {
	appG := app.Gin{C: c}
	var (
		param   channel.LianIncomeParam
		errCode int
	)

	_, errCode = app.BindJsonAndValid(c, &param)
	if errCode != e.SUCCESS {
		appG.ResponseError(e.CodeMap[errCode], nil)
		return
	}

}
